#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main07()
{
	int arr[] = { 9,5,8,6,4,10,7,1,2,3 };
	int j = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < j-1; i++) {
		for (int k = 0; k < j-1-i; k++) {
			if (arr[k] > arr[k + 1]) {
				int temp = arr[k];
				arr[k] = arr[k + 1];
				arr[k + 1] = temp;
			}
		}
	}
	for (int i = 0; i < j; i++) {
		printf("%d ", arr[i]);
	}
	return 0;
}